duh
authorBrion Vibber <brion@users.mediawiki.org>
Thu, 13 Jul 2006 23:53:04 +0000 (23:53 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Thu, 13 Jul 2006 23:53:04 +0000 (23:53 +0000)
maintenance/cleanupImages.php

index 57b36f7..74443d6 100644 (file)
@@ -147,8 +147,8 @@ class ImageCleanup extends TableCleanup {
        function buildSafeTitle( $name ) {
                $x = preg_replace_callback(
                        "/([^$wgLegalTitleChars])/",
-                       $name,
-                       array( $this, 'hexChar' ) );
+                       array( $this, 'hexChar' ),
+                       $name );
                
                $test = Title::makeTitleSafe( NS_IMAGE, $x );
                if( is_null( $test ) || $test->getDbKey() !== $x ) {